{% load namedqueryset_tags %}
<script language="javascript">
  function andSearch(searchString)
  {
    var url = "{% remove_url_param filter.params.search_string %}"
    var newUrl = url + ((url.indexOf("?") < 0) ? "?" : "&")
    newUrl += "{% if template_scope %}{{ template_scope }}.{% endif %}{{ filter.params.search_string }}=" + encodeURIComponent(searchString)
    location.href = newUrl
  }
</script>
<form action="" method="GET"
      onsubmit="andSearch(this.elements['s'].value);return false;">
<h5 class="filter_title">{{ filter.name|escape }}</h5>
<input name="s" type="text" maxlength="100" size="12"
       value="{% nested_resolve filter.params.search_string 2 escape=True %}"></input>
</form>